//
//  SureButton.swift
//  Exchange
//
//  Created by rui on 2018/4/24.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class SureButton: UIButton {

    override init(frame: CGRect) {
        super.init(frame: frame)
        initUI()
    }
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        initUI()
    }
    
    func initUI() {
        setBackgroundImage(UIImage.image(color: kDisableColor), for: .disabled)
        setBackgroundImage(UIImage.image(color: kThemeColor), for: .normal)
        self.layer.cornerRadius = 4
        self.layer.masksToBounds = true
        self.titleLabel?.font = UIFont.systemFont(ofSize: 15)
        self.setTitleColor(UIColor.white, for: .normal)
        self.titleLabel?.textAlignment = .center
    }
}
